A smooth and safe operation of the blow room and carding machines requires detection and elimination of contamination in cotton. It also requires detection of sparks that occur at different stages in the blow room and carding machines.